# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=pythonect
_pkgname=Pythonect
pkgver=0.6.0
pkgrel=2
pkgdesc='A general-purpose dataflow programming language written in Python.'
arch=('any')
url='https://pypi.org/project/Pythonect/#files'
license=('BSD')
depends=('python2' 'python2-ply')
makedepends=('python2-setuptools')
options=('!emptydirs')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/Pythonect-$pkgver.tar.gz")
sha512sums=('ebfac2d200b196c2be8e931f2a078fb2afdb8fb9ce7d8639e56c32da01ec36a49fd1f29e0280fa57977823450b9e4f4649ced43ce7b6cc878543d00fc8392e42')

build () {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

